"""
Created on 2010-8-8

@author: morningbzy
"""
from sgs.common.game_action import IGameAction

class FigureBase(IGameAction):

    def __init__(self):
        self.name = 'N/A'
        self.skillList = []
        self.owner = None
        self.camp = None

    def setOwner(self, owner):
        self.owner = owner

    def toArray(self,):
        strSkill = [s.name for s in self.skillList]
        return [self.name, self.hp, strSkill]
        # return '%s_%d_%s' % (self.name, self.hp, strSkill)
